<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Api\Controller;

use Admin\Model\BorrowModel;
/**
 * Description of BorrowController
 *
 * @author Administrator
 */
class BorrowController extends ApiController {
    //put your code here
    
    private  $borrowModel;
            
    function __construct() {
        parent::__construct();
        $this->borrowModel = new BorrowModel();
    }
    
    
    public function save(){
        
        if($this->borrowModel->create()){
            $this->borrowModel->add();
            $this->ajaxReturn([ 'msg' => "提交成功",
                                'code' => $this->SUCCESS_CODE,
                                'data' => []
                            ]);
        }
    }
}
